package com.link.base.base.signin.dao.mybatis.mapper;


import com.link.base.base.signin.model.SignIn;
import com.link.core.basic.dao.mapper.BasicMapper;

/**
 * @author unknown
 * @date unknown
 * @comments 签到
 */
public interface SignInMapper extends BasicMapper<SignIn> {

    /**
     * 通过用户ID 查询一条数据
     *
     * @param entity
     * @return SignIn
     * @throws Exception
     */
    public SignIn queryByUserId(SignIn entity) throws Exception;

    /**
     * 更新【最后签到时间】
     *
     * @param entity
     * @throws Exception
     */
    public void lastSignTimeUpdate(SignIn entity) throws Exception;

    /**
     * 更新【签到总天数】
     *
     * @param entity
     * @throws Exception
     */
    public void signInDaysUpdate(SignIn entity) throws Exception;
}
